/*
 * File: exercise2.cpp
 * -------------------
 * Conversion formula is : 
 * 1 inch = 0.0254 meters
 * 1 foot = 12 inches
 * compile command :
 * g++ -Wall -g exercise2.cpp -o exercise2 -lStanfordCPPLib -I ../include/
 */

#include <iostream>
#include "simpio.h"
using namespace std;

int main()
{
	double meters;
	double inches;
	double foots;
	meters = getReal("Enter meters: ");
	inches = 0.0254 * meters;
	foots = 12 * inches;
	cout<<"meters = "<<meters<<endl;
	cout<<"inches = "<<inches<<endl;
	cout<<"foots = "<<foots<<endl;
	return 0;
}
